﻿using System;
using System.Collections;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
namespace AnyOffice.general.address.personal
{
    public partial class initial : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string initial = (Request.QueryString["index"] == null) ? "a" : Request.QueryString["index"].ToString();
            DataTable table = new AddressDao().SelectByPY(base.Conn, initial, base.User.Identity.Name);
            this.ViewState["NavPromat"] = "【<b>" + initial.ToUpper() + "</b>(" + table.Rows.Count.ToString() + ")】";
            if (table.Rows.Count > 0)
            {
                this.rptAddress.DataSource = table;
                this.rptAddress.DataBind();
            }
            else
            {
                this.litMessage.Text = base.ShowMessage("通讯录尚无记录");
            }
        }
 

    }
}
